﻿cmake_minimum_required(VERSION 3.15)

project(QtHttp)

#set(ENV{QT_DIR} "C:/Qt/5.15.2/msvc2019_64")
#set(CMAKE_PREFIX_PATH $ENV{QT_DIR})

include(FetchContent)
FetchContent_Declare(
  googletest
  GIT_REPOSITORY https://github.com/google/googletest.git
  GIT_TAG        703bd9caab50b139428cea1aaff9974ebee5742e # release-1.10.0
)
FetchContent_Declare(
  Catch2
  GIT_REPOSITORY https://github.com/catchorg/Catch2.git
  GIT_TAG        de6fe184a9ac1a06895cdd1c9b437f0a0bdf14ad # v2.13.4
)

# After the following call, the CMake targets defined by googletest and
# Catch2 will be available to the rest of the build
FetchContent_MakeAvailable(googletest Catch2)

find_package(Qt5  COMPONENTS  Core Network REQUIRED)

add_executable(QtHttp QtHttp.cpp)
target_link_libraries(QtHttp Qt5::Core Qt5::Network)
